package com.example.paymentdemo.service;

import com.alipay.api.AlipayApiException;

import java.util.Map;

public interface AliPayService {
    String tradeCreate(Long productId) throws AlipayApiException;

    void processOrder(Map<String, String> params);

    void cancelOrder(String orderNo) throws AlipayApiException;

    String queryOrder(String orderNo) throws AlipayApiException;

    void checkOrderStatus(String orderNo) throws AlipayApiException;

    void refund(String orderNo, String reason);
    String queryRefund(String orderNo);

    String queryBill(String billDate, String type);
}
